package com.wuliupai.delivery.wuliupaidelivery.db;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Descriptions：历史记录的省市县Bean
 * <p>
 * Author：ChenME
 * Date：2017/1/4
 * Email：ibelieve1210@163.com
 */
public class CityHistoryBean implements Parcelable {

    private String areaCode;
    private String cityCode;
    private String provinceCode;
    private String area;
    private String city;
    private String province;

    public CityHistoryBean(String areaCode, String cityCode, String provinceCode, String area, String city, String province) {
        this.areaCode = areaCode;
        this.cityCode = cityCode;
        this.provinceCode = provinceCode;
        this.area = area;
        this.city = city;
        this.province = province;
    }
    public CityHistoryBean() {
    }

    @Override
    public String toString() {
        return "CityHistoryBean{" +
                "areaCode='" + areaCode + '\'' +
                ", cityCode='" + cityCode + '\'' +
                ", provinceCode='" + provinceCode + '\'' +
                ", area='" + area + '\'' +
                ", city='" + city + '\'' +
                ", province='" + province + '\'' +
                '}';
    }

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    public String getProvinceCode() {
        return provinceCode;
    }

    public void setProvinceCode(String provinceCode) {
        this.provinceCode = provinceCode;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.areaCode);
        dest.writeString(this.cityCode);
        dest.writeString(this.provinceCode);
        dest.writeString(this.area);
        dest.writeString(this.city);
        dest.writeString(this.province);
    }

    protected CityHistoryBean(Parcel in) {
        this.areaCode = in.readString();
        this.cityCode = in.readString();
        this.provinceCode = in.readString();
        this.area = in.readString();
        this.city = in.readString();
        this.province = in.readString();
    }

    public static final Parcelable.Creator<CityHistoryBean> CREATOR = new Parcelable.Creator<CityHistoryBean>() {
        @Override
        public CityHistoryBean createFromParcel(Parcel source) {
            return new CityHistoryBean(source);
        }

        @Override
        public CityHistoryBean[] newArray(int size) {
            return new CityHistoryBean[size];
        }
    };
}